<?php

namespace Modules\User\Entities;

use Modules\Core\Entities\BaseEntity as Model;

// 社交帐号
class SocialAccount extends Model
{
	protected $guarded = [];
	
	public function scopeType($query, $type) 
	{
		$query->where('type', $type);
	}

	public function scopeName($query, $name) 
	{
		$query->where('name', $name);
	}
}
